
package ui.adapter;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import net.ck.hzq.R;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import Bean.JiFenRecordBean;
import base.BaseViewHolder;
import base.SuperBaseAdapter;
import util.StringUtils;
import util.SysUtils;


/**
 * 提现列表适配器
 * Created by chenjian on 19/2/27.
 */
public class JiFenLiuZhuanAdapter extends SuperBaseAdapter<JiFenRecordBean.DataBean> {

    List<JiFenRecordBean.DataBean> mData = new ArrayList<>();
    Context mContext;
    int mtype;

    public JiFenLiuZhuanAdapter(Context context, List<JiFenRecordBean.DataBean> data, int type) {
        super(context, data);
        mContext = context;
        mData = data;
        mtype = type;
    }

    @Override
    protected void convert(BaseViewHolder holder, final JiFenRecordBean.DataBean item, final int position) {

 holder.setText(R.id.zhuanrangname,item.getCustomName());
        holder.setText(R.id.jifennumber,item.getJifen());
        holder.setText(R.id.zhuanrangtime, StringUtils.gettime(item.getCreateTime()));


    }


    @Override
    protected int getItemViewLayoutId(int position, JiFenRecordBean.DataBean item) {
        return R.layout.jifenliuzhuanrecord_list;
    }

}
